define([
    'moment',
    'angular-cookies',
    'js/factories/dialog'
], function(moment) {
    var factory = angular.module('app.factory', ['ngCookies', 'app.factory.dialog']);

    factory.config(['$cookiesProvider', function($cookiesProvider) {
        $cookiesProvider.defaults.expires = moment().add(30, 'days').toDate();
    }]);

    return factory;
});
